package com.woniu.cms.goods.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 入库单附属材料表，入库单页面材料详情页所显示的材料清单
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-16
 */
@Getter
@Setter
@ToString
  @TableName("cms_goods_getbill_material")
@ApiModel(value = "GoodsGetbillMaterial对象", description = "入库单附属材料表，入库单页面材料详情页所显示的材料清单")
public class GoodsGetbillMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("合同表外键")
      private Integer contractId;

      @ApiModelProperty("入库表外键")
      private Integer getbillId;

      @ApiModelProperty("物资编号")
      private String goodsCode;

      @ApiModelProperty("物资名称")
      private String goodsName;

      @ApiModelProperty("规格型号")
      private String modelName;

      @ApiModelProperty("单位")
      private String getbillUnit;

      @ApiModelProperty("入库数量")
      private BigDecimal getbillNum;

      @ApiModelProperty("单价")
      private BigDecimal getbillPrice;

      @ApiModelProperty("总金额")
      private BigDecimal getbillMoney;

      @ApiModelProperty("购入时间")
      private Date buyTime;

      @ApiModelProperty("购买凭证编号")
      private String incomeCode;

      @ApiModelProperty("发票编号")
      private Integer invoiceNo;

      @ApiModelProperty("备注")
      private String remarks;

      @ApiModelProperty("物资类型（0-甲供，1-乙供）")
      private Integer materialType;

      @ApiModelProperty("剩余未领料数量（仓库剩余数量）")
      private BigDecimal residueNum;


}
